package glive.system.peer.glive;

import common.peer.PeerAddress;
import common.peer.PeerDescriptor;
import common.peer.PeerMessage;

public class GLiveParentResponse extends PeerMessage {
    private static final long serialVersionUID = -7784983667123039670L;
    
    private PeerDescriptor parent;
    private boolean accepts;

    public GLiveParentResponse(PeerAddress source, PeerAddress destination, PeerDescriptor parent, boolean accepts) {
            super(source, destination);
            this.parent = parent;
            this.accepts = accepts;
    }
   
    public PeerDescriptor getParent() {
            return parent;
    }
    
    public boolean getResponse() {
    	return accepts;
    }
}
